package org.footballmanager.pandafootball.system.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.footballmanager.pandafootball.system.domain.enums.BSJC;
import org.footballmanager.pandafootball.system.domain.enums.SJZT;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 赛季表
 */
@Entity
@Setter
@Getter
@ToString
public class FootSj extends BaseEntity implements Serializable {
    @Column(name = "sjbm", length = 10)
    @NotNull
    private String sjbm;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "ksrq", length = 19)
    @NotNull
    private Date ksrq;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "jsrq", length = 19)
    @NotNull
    private Date jsrq;
    @Column(name = "bsjc")
    @NotNull
    private BSJC bsjc;
    @Column(name = "sjzt")
    @NotNull
    private SJZT sjzt;

}